<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>安全事件详情</title>
    <%@ include file="/WEB-INF/views/common/easyui.jsp"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
    <script src="${ctx}/static/plugins/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="${ctx}/static/plugins/easyui/common/jquery.select.js"type="text/javascript"></script>
    <link type="text/css" rel="stylesheet" href="${ctx}/static/css/table.css" />
</head>
<body>
<form id="safeForm" method="post" action="${ctx}/hangkong/edit">
    <input type="hidden" name="id" value="${tableOpeBean.id}" />
    <table>
        <tr>
            <td colspan="4" style="background-color: #ccc;text-align: left;"> 基本信息</td>
        </tr>
        <tr>
            <td><label>标题:</label></td>
            <td>${tableOpeBean.title}</td>
            <td><label> 时间:</label></td>
            <td>${tableOpeBean.time}</td>
        </tr>
        <tr>
            <td><label>地点:</label></td>
            <td>${tableOpeBean.location}</td>
            <td><label>安全事件编号:</label> </td>
            <td>${tableOpeBean.code}</td>
        </tr>
        <tr>
            <td><label>航空器型号:</label></td>
            <td colspan="3">${tableOpeBean.modelNum}</td>
        </tr>

        <tr>
            <td colspan="4" style="background-color: #ccc;text-align: left;">事件信息</td>
        </tr>

        <tr>
            <td><label>事件经过:</label></td>
            <td>${tableOpeBean.experience}</td>
            <td><label>人员情况:</label></td>
            <td>${tableOpeBean.aboutPerson}</td>
        </tr>
        <tr>
            <td><label>航空器情况:</label></td>
            <td>${tableOpeBean.hangkongqi}</td>
            <td><label>天气情况:</label></td>
            <td>${tableOpeBean.weather}</td>
        </tr>
        <tr>
            <td><label>现场侦察情况:</label></td>
            <td>${tableOpeBean.xianchang}</td>
            <td><label>其他:</label></td>
            <td>${tableOpeBean.other}</td>
        </tr>

        <tr>
            <td colspan="4" style="background-color: #ccc;text-align: left;">专家审核</td>
        </tr>

        <tr>
            <td><label>原因分析:</label></td>
            <td colspan="3"><input id="reason" name="reason" value="${tableOpeBean.reason}"></input></td>
        </tr>

        <tr>
            <td><label>结论:</label></td>
            <td colspan="3"><input id="result" name="result" value="${tableOpeBean.result}"></input></td>
        </tr>

       <tr>
            <td colspan="4" style="background-color: #ccc;text-align: left;">专家建议</td>
        </tr>

        <tr>
            <td style="border-style:none" colspan="4">
                <textarea  name="expertSuggest" id="expertSuggest" cols="80" rows="6">${tableOpeBean.expertSuggest}</textarea>
            </td>
        </tr>

    </table>
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="save();">保存</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="back();">返回</a>
</form>
</body>

<script type="text/javascript">
    function save(){
        $("#safeForm").form("enableValidation");
        framework.saveForm($("#safeForm").form(),function (result) {
            if (result.success) {
                framework.alert('提示',result.msg,'info');
                window.parent.mainpage.mainTabs.closeCurrentTab();
                return true;
            }else{
                framework.alert('提示',result.msg,'info');
            }
        });
    };

    function back(){
        window.parent.mainpage.mainTabs.closeCurrentTab();
    };

</script>
<script src="${ctx}/static/plugins/easyui/common/YDataGrid.js?v=11" type="text/javascript"></script>
</body>
</html>